package com.es.designmode.mediator;

/**
 * 具体同事对象
 *
 * @author Will
 */
public class ConcreteColleague2 extends Colleague {
    public ConcreteColleague2(Mediator mediator) {
        super(mediator);
    }

    public void send(String message) {
        // 通常信息是通过中介发送出去的
        getMediator().send(message, this);
    }

    public void notifyy(String message) {
        System.out.println("同事2得到信息：" + message);
    }
}
